<template>
  <div class="school">
      <h2 @click="showName">学校名称：{{name}}</h2>
      <h2>学校地址：{{address}}</h2>
  </div>
</template>

<script>
import { hunhe } from '../mixin'
    export default {
        name:'SchoolMixin',
        data () {
            return {
                name:'尚硅谷',
                address:'北京，昌平',
            }
        },
        mixins:[hunhe]
    }
</script>

<style scoped>
    .school{
        background-color: rgb(119, 109, 109);
    }
</style>